<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>

import CURDTable from '@/framework/components/table/CURDTable'
import { productCategoryApi } from '@/feature/pms/infra/api/productCategoryApi'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: productCategoryApi,
        pagination: false,
        showSelection: false,
        columns: [
          // {
          //   label: '直播间主播openid',
          //   prop: 'authorOpenid'
          // },
          {
            label: 'ID',
            width: 100,
            prop: 'id'
          }, {
            label: '父分类ID',
            width: 100,
            searchable: true,
            prop: 'parentId',
            hiddenInTable: true
          },
          {
            label: '标题',
            width: 200,
            prop: 'name'
          }, {
            label: '等级',
            width: 100,
            prop: 'level'
          }
        ]
      }
    }
  },
  methods: {}
}
</script>

